﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Coldairarrow.Entity.Base_Company;
using Coldairarrow.IBusiness.Company;
using Microsoft.AspNetCore.Mvc;

namespace Coldairarrow.Api.Controllers.Frontstage
{
    [Route("/Frontstage/[controller]/[action]")]
    public class FTS_PartnerController : BaseApiController
    {
        #region DI

        public FTS_PartnerController(IBTB_PartnerBusiness iBTB_PartnerBusiness)
        {
            _iBTB_PartnerBusiness = iBTB_PartnerBusiness;
        }

        IBTB_PartnerBusiness _iBTB_PartnerBusiness;
        #endregion
        [NoCheckJWT]
        [HttpPost]
        public async Task<List<BTB_Partner>> GetDataAsync()
        {
            return await _iBTB_PartnerBusiness.GetDataAsync();
        }
    }
}
